const baseUrl = 'http://118.31.16.54:9090/api'
// const baseUrl = 'http://101.37.150.249:8082' // 地铁测试环境

const api = {
  login: baseUrl + '/card/manage/login',
  city: { // 城市字典管理
    result: baseUrl + '/card/manage/area/findByConditions',
    addorupdate: baseUrl + '/card/manage/area/saveOrUpdate',
    delete: baseUrl + '/card/manage/area/delete'
  },
  access: { // 接入方字典管理
    result: baseUrl + '/card/manage/issuer/findByConditions',
    addorupdate: baseUrl + '/card/manage/issuer/saveOrUpdate',
    delete: baseUrl + '/card/manage/issuer/delete'
  },
  card: { // 卡类型字典管理
    result: baseUrl + '/card/manage/type/findByConditions',
    addorupdate: baseUrl + '/card/manage/type/saveOrUpdate',
    delete: baseUrl + '/card/manage/type/delete',
    getCardType: baseUrl + '/card/manage/type/findAll'
  },
  cardType: { // 卡类型管理
    result: baseUrl + '/card/manage/cardType/findByConditions',
    addorupdate: baseUrl + '/card/manage/cardType/saveOrUpdate',
    delete: baseUrl + '/card/manage/cardType/delete',
    getCity: baseUrl + '/card/manage/region/findAll'
  },
  cardCode: { // 外部卡号管理
    result: baseUrl + '/card/manage/cardNo/findByConditions',
    add: baseUrl + '/card/manage/cardNo/generate',
    getCardType: baseUrl + '/card/manage/cardType/findDownList'
  },
  cardCodeSections: { // 卡号段管理
    result: baseUrl + '/inner/card/manage/rule/findByConditions',
    addorupdate: baseUrl + '/inner/card/manage/rule/saveOrUpdate'
  },
  insideCard: { // 内部卡管理
    result: baseUrl + '/inner/card/manage/cardNo/findByConditions',
    addorupdate: baseUrl + '/inner/card/manage/cardNo/generate',
    getCardCodeSection: baseUrl + '/inner/card/manage/rule/findByConditions',
    getCity: baseUrl + '/card/manage/region/findAll',
    remian: baseUrl + '/inner/card/manage/cardNo/findRemainCardNum'
  },
  role: { // 角色管理
    result: baseUrl + '/card/manage/role/findByConditions',
    update: baseUrl + '/card/manage/role/modify',
    add: baseUrl + '/card/manage/role/add',
    delete: baseUrl + '/card/manage/role/deleteRole',
    getRole: baseUrl + '/card/manage/roleModule/findByConditions',
    updateRole: baseUrl + '/card/manage/roleModule/updateRole'
  },
  user: { // 账号管理
    result: baseUrl + '/card/manage/findAccountFy',
    add: baseUrl + '/card/manage/addAccount',
    update: baseUrl + '/card/manage/updateAccount',
    delete: baseUrl + '/card/manage/deleteAccount'
  }
}

export default api
